package cn.gson.crm.model.mapper;

import cn.gson.crm.model.pojos.Customer;
import cn.gson.crm.model.pojos.RepairOrder;
import cn.gson.crm.model.pojos.RepairPayment;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RepairPaymentMapper {
    //查询当前登录人所经手的维修回款
    public List<RepairPayment> selectpaymen(Integer rid);
    //多条件查询维修回款
    public List<RepairPayment> selectwhere(@Param("rid") Integer rid, @Param("where") String where);
    //时间查询维修回款
    public List<RepairPayment> selecttime(@Param("rid") Integer rid,@Param("statr") String statr,@Param("endtime") String endtime);
    //修改工单回款钱
    public void updatemoney(@Param("money") Integer money,@Param("rid") Integer rid);
    //修改工单回款状态
    public void updatestate(Integer rid);
    //查询当前人下所有客户
    public List<Customer> selectcustomer(Integer yid);
    //根据客户查出维修工单
    public List<RepairOrder> selecteweixu(Integer cid);
    //查询工单
    public List<RepairOrder> selectgongdan(Integer rid);
}
